package com.wiz.vo.criteria;

public class MonitorSearchCriteriaTO {
	private String  hqId;//油站总部id
	private String  hqName;//油站总部名
	private String  stationId;//油站站点id
	private String  stationName;//油站站点名
	
	
	private int pageSize;
	private int pageNo;
	private Boolean isNeedPaging;
	private int startIndex;
	private int endIndex;

	
	public MonitorSearchCriteriaTO() {
		super();
	}

	public MonitorSearchCriteriaTO(String hqId, String hqName,
			String stationId, String stationName, int pageSize, int pageNo,
			Boolean isNeedPaging) {
		super();
		this.hqId = hqId;
		this.hqName = hqName;
		this.stationId = stationId;
		this.stationName = stationName;
		this.pageSize = pageSize;
		this.pageNo = pageNo;
		this.isNeedPaging = isNeedPaging;
	}

	public String getHqId() {
		return hqId;
	}



	public void setHqId(String hqId) {
		this.hqId = hqId;
	}



	public String getStationId() {
		return stationId;
	}



	public void setStationId(String stationId) {
		this.stationId = stationId;
	}



	public String getStationName() {
		return stationName;
	}



	public void setStationName(String stationName) {
		this.stationName = stationName;
	}



	public Boolean getIsNeedPaging() {
		return isNeedPaging;
	}

	public void setIsNeedPaging(Boolean isNeedPaging) {
		this.isNeedPaging = isNeedPaging;
	}

	public int getStartIndex() {
		if (this.startIndex == 0)
			return (this.pageNo - 1) * this.pageSize;
		else
			return this.startIndex;

	}

	public void setStartIndex(int startIndex) {
		this.startIndex = startIndex;
	}

	public int getEndIndex() {
		if (this.endIndex == 0)
			return this.pageSize* this.pageNo;
		else
			return this.endIndex;
	}

	public void setEndIndex(int endIndex) {
		this.endIndex = endIndex;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public String getHqName() {
		return hqName;
	}

	public void setHqName(String hqName) {
		this.hqName = hqName;
	}

}
